home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / games_d / gnuchess.zip / UNIXMAKE < prev    next >
Text File  |  1990-07-20  |  3KB  |  103 lines

  1. #
  2. # Makefile for CHESS
  3. #
  4. # Copyright (C) 1986, 1987, 1988, 1989, 1990 Free Software Foundation, Inc.
  5. #
  6. # This file is part of CHESS.
  7. #
  8. # CHESS is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY.  No author or distributor
  10. # accepts responsibility to anyone for the consequences of using it
  11. # or for whether it serves any particular purpose or works at all,
  12. # unless he says so in writing.  Refer to the CHESS General Public
  13. # License for full details.
  14. #
  15. # Everyone is granted permission to copy, modify and redistribute
  16. # CHESS, but only under the conditions described in the
  17. # CHESS General Public License.   A copy of this license is
  18. # supposed to have been given to you along with CHESS so you
  19. # can know your rights and responsibilities.  It should be in a
  20. # file named COPYING.  Among other things, the copyright notice
  21. # and this notice must be preserved on all copies.
  22. #
  23. # gnuchess  will be the curses-based chess.
  24. # gnuchessn will be the fancy-display-curses-based chess.
  25. # gnuchessr will be the xchess/chesstool based chess.
  26. #        (/usr/games/chesstool gnuchessr)
  27. #    for use with SUN's chesstool and X-window's xchess.
  28. #    To use with latter, add -DCHESSTOOL to the nondsp.o
  29. #    compilation lines (e.g. cc -O -DCHESSTOOL ...)
  30. # If you want to use the persistent transpositon table add
  31. # -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\"
  32. # to the gnuchess.o compilation line. You also have to run gnuchess -t
  33. # To actually create the file. -t can also be used to report
  34. # statistics about the file or to resize it.
  35. #
  36. VERS=    3.1
  37. DIST=    README DOCUMENTATION Makefile version.h gnuchess.h gnuchess.c\
  38.     uxdsp.c nondsp.c nuxdsp.c gnuchess.book Xchess
  39. BINDIR= /user/tcollins/sources/gnuchess3.1
  40. #BINDIR= /user/gnu/bin
  41. LIBDIR= /user/tcollins/sources/gnuchess3.1
  42. #LIBDIR= /user/gnu/lib
  43. CC= cc
  44. #CC=     gcc -W -finline-functions -fstrength-reduce
  45. CFLAGS=    -O -A cpu,$(TARGET) -A sys,bsd4.3
  46. TARGET = 3000
  47. all : gnuchess gnuchessr gnuchessn gnuan
  48.  
  49. gnuchess: gnuchess.o uxdsp.o
  50.     $(CC) $(CFLAGS) -o gnuchess gnuchess.o uxdsp.o -lcurses -ltermlib
  51.  
  52. gnuchessr: gnuchess.o nondsp.o
  53.     $(CC) $(CFLAGS) -o gnuchessr gnuchess.o nondsp.o
  54.  
  55. gnuchessn: gnuchess.o nuxdsp.o
  56.     $(CC) $(CFLAGS) -o gnuchessn gnuchess.o nuxdsp.o -lcurses -ltermlib
  57.  
  58. gnuan: gnuchess.o gnuan.o
  59.     $(CC) $(CFLAGS) -o gnuan gnuchess.o gnuan.o
  60.  
  61. gnuchess.o: gnuchess.c gnuchess.h
  62.     $(CC) $(CFLAGS) -DBOOK=\"$(LIBDIR)/gnuchess.book\" -c gnuchess.c
  63.  
  64. #gnuchess.o: gnuchess.c gnuchess.h
  65. #    $(CC) $(CFLAGS) -DBOOK=\"$(LIBDIR)/gnuchess.book\" -DHASHFILE=\"$(LIBDIR)/gnuchess.hash\" -c gnuchess.c
  66. #
  67. uxdsp.o: uxdsp.c gnuchess.h
  68.     $(CC) $(CFLAGS) -c uxdsp.c
  69.  
  70. nuxdsp.o: nuxdsp.c gnuchess.h
  71.     $(CC) $(CFLAGS) -c nuxdsp.c
  72.  
  73. #nondsp.o: nondsp.c gnuchess.h
  74. #    $(CC) $(CFLAGS) -DCHESSTOOL -c nondsp.c
  75. #
  76. nondsp.o: nondsp.c gnuchess.h
  77.     $(CC) $(CFLAGS) -c nondsp.c
  78.  
  79. gnuan.o: gnuan.c gnuchess.h
  80.     $(CC) $(CFLAGS) -c gnuan.c
  81.  
  82. lint:
  83.     lint gnuchess.c uxdsp.c nondsp.c nuxdsp.c
  84.  
  85. unprotoize:
  86.     unprotoize -c -DHASHFILE gnuchess.c uxdsp.c nondsp.c nuxdsp.c
  87.  
  88. protoize:
  89.     protoize -c -DHASHFILE gnuchess.c uxdsp.c nondsp.c nuxdsp.c
  90.  
  91. distribution:
  92.     tar cf - $(DIST) > gnuchess.tar
  93.     compress gnuchess.tar
  94.     mv gnuchess.tar.Z gnuchess-$(VERS).tar.Z
  95.  
  96. install:
  97.     cp gnuchessr $(BINDIR)/gnuchess.chesstool
  98.     cp gnuchess $(BINDIR)/gnuchess
  99.     cp gnuchess.book $(LIBDIR)/gnuchess.book
  100.  
  101. clean:
  102.     -rm gnuchess gnuchessr gnuchessn *.o
  103.